angular.module('sys', [])
    .config(($stateProvider) => {

        $stateProvider
            .state('sys.menu', {
                url        : '/menu',
                templateUrl: 'sys/menu/menu.html',
                controller : 'SysMenuCtrl as sysMenu',
                resolve    : {
                    store($ocLazyLoad) {
                        return $ocLazyLoad.load({
                            name : 'sys.menu',
                            files: ['sys/menu/menu.js']
                        });
                    }
                }
            })
            .state('sys.user', {
                url        : '/user',
                templateUrl: 'sys/user/user.html',
                controller : 'SysUserCtrl as sysUser',
                resolve    : {
                    store($ocLazyLoad) {
                        return $ocLazyLoad.load({
                            name : 'sys.user',
                            files: ['sys/user/user.js']
                        });
                    }
                }
            });
    });